<div class="layui-form-item">
	<label class="layui-form-label" for="{%{name}%}">{%{title}%}</label>
	<div class="layui-input-block">
		<input type="checkbox" lay-filter="{%{name}%}" id="{%{name}%}" title="" lay-skin="switch" lay-text="{%{text}%}" {%{required2}%}>
		<input type="hidden" name="{%{name}%}" value="{%{attr}%}">
	</div>
</div>